<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <c:choose>
	 <c:when test="${user != null}">
		<%-- <c:if test="${usertype == 'Admin User'}">
			<jsp:forward page="404.jsp" />
		</c:if> --%>
	</c:when> 
	<c:otherwise>
		<jsp:forward page="login.jsp" />
	</c:otherwise>
</c:choose>
<div id="content">


	<div id="page-heading">
		<h1>Detail Account</h1>
	</div>

	<c:choose>
		<c:when test="${error == null}">
			<table id="content-table">
				<tr>
					<th rowspan="3" class="sized"><img
						src="resource/images/shared/side_shadowleft.jpg" width="20"
						height="300" alt="" /></th>
					<th class="topleft"></th>
					<td id="tbl-border-top">&nbsp;</td>
					<th class="topright"></th>
					<th rowspan="3" class="sized"><img
						src="resource/images/shared/side_shadowright.jpg" width="20"
						height="300" alt="" /></th>
				</tr>
				<tr>
					<td id="tbl-border-left"></td>
					<td>
						<!--  start content-table-inner -->
						<div id="content-table-inner">

							<table>
								<tr valign="top">
									<td>
										<!--  start step-holder --> <!--  end step-holder --> <!-- start id-form -->
										<form action="">
											<table id="id-form">
												
															<tr>
																<th valign="top">Account Type</th>
																<td>${acc.accountType}</td>
																<td></td>
															</tr>
			
															<tr>
																<th valign="top">Account Number</th>
																<td>${acc.accountNumber}</td>
																
															</tr>
			
															<tr>
																<th valign="top">Balance</th>
																<td>${acc.balance}</td>
																
															</tr>
			
															<tr>
																<th valign="top">Full Name</th>
																<td>${acc.idCustomer.firstName} ${acc.idCustomer.midName} ${acc.idCustomer.lastName}</td>
																
															</tr>
			
															<tr>
																<th valign="top">ID Card Number</th>
																<td>${acc.idCustomer.idCardNumber}</td>
															
															</tr>
															<tr>
																<th valign="top">State</th>
																<td>${acc.idState.nameState}</td>
																
															</tr>
			
															<tr>
																<th valign="top">Mobile Home</th>
																<td>${acc.idCustomer.mobilePhone}</td>
																<td></td>
															</tr>
			
															<tr>
																<th valign="top">Home Phone</th>
																<td>${acc.idCustomer.phoneHome}</td>
															
															</tr>

															<tr>
																<th valign="top">Email</th>
																<td>${acc.idCustomer.email}</td>
															
															</tr>
															
															<tr>
																<th valign="top">Adrress 1</th>
																<td>${acc.idCustomer.address1}</td>
															
															</tr>
															
															<tr>
																<th valign="top">Adrress 2</th>
																<td>${acc.idCustomer.address2}</td>
															
															</tr>
															
															<tr>
																<th>&nbsp;</th>
																<td valign="top"><input type="hidden"
																	class="btnReject" value="" id="approve" /> 
																	
																	<c:if test="${closeAdmin != 'closeAdmin'}">
																	<input
																	onClick="location.href='backSearchAccount.html'" type="button"
																	class="btnReject" value="Close" id="transfer" />
																	</c:if>
																	<c:if test="${closeAdmin == 'closeAdmin'}">
																	<input
																	onClick="location.href='adminReviewTransaction.html'" type="button"
																	class="btnReject" value="Close" id="transfer" />
																	</c:if>
																	</td>									
																<td></td>
															</tr>
															
														

											</table>
											<!-- end id-form  -->
										</form>
									</td>
									<td></td>
								</tr>

								<tr>
									<td><img src="resource/images/shared/blank.gif"
										width="695" height="1" alt="blank" /></td>
									<td></td>
								</tr>
							</table>

							<div class="clear"></div>


						</div> <!--  end content-table-inner  -->
					</td>
					<td id="tbl-border-right"></td>
				</tr>
				<tr>
					<th class="sized bottomleft"></th>
					<td id="tbl-border-bottom">&nbsp;</td>
					<th class="sized bottomright"></th>
				</tr>
			</table>
		</c:when>
		<c:otherwise>
			<div id="page-heading">
				<h1 style="color: red">${error}</h1>
			</div>

		</c:otherwise>
	</c:choose>



	<div class="clear">&nbsp;</div>

</div>
